/**
 * Created by Colin3dmax on 16/12/26.
 */

'use strict';

import * as types from '../constants/action-types';

const initState = {
    searchService:[],

};

export default function reducer(state = initState, action) {
    switch (action.type) {
        case types.CLEAN_COMMON:
            return initState;
        case types.RECEIVE_COMMON_SEARCH_RESULT:
            return Object.assign({},state,{searchService:action.searchService})
        default:
            return state;
    }
}
